<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://unpkg.com/vue@3"></script>
  </head>
  <body>
    <div id="app">
      <ul>
        <li v-for="(user ,i) in userList">id:{{user.id}},姓名:{{user.name}}</li>
      </ul>
    </div>
    <script>
      const { createApp } = Vue;

      createApp({
        data() {
          return {
            userList: [
              { id: 1, name: "zs" },
              { id: 2, name: "ls" },
              { id: 3, name: "ww" },
            ],
          };
        },
      }).mount("#app");
    </script>
  </body>
</html>
